package org.jeecg.modules.business.warehouse.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description: 入库任务
 * @Author: jeecg-boot
 * @Date:   2023-07-28
 * @Version: V1.0
 */
@ApiModel(value="wms_in_receipt_task对象", description="入库任务查询对象")
@Data
public class WmsInReceiptTaskQueryVO implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**组织*/
	@Excel(name = "组织", width = 15)
    @ApiModelProperty(value = "组织")
    private String organization;
	/**入库状态*/
	@Excel(name = "入库状态", width = 15)
    @ApiModelProperty(value = "入库状态")
    @Dict(dicCode = "warehouse_status")
    private String warehouseStatus;
	/**检验状态*/
	@Excel(name = "检验状态", width = 15)
    @ApiModelProperty(value = "检验状态")
    private String inspectStatus;
	/**检验结果*/
	@Excel(name = "检验结果", width = 15)
    @ApiModelProperty(value = "检验结果")
    private String inspectResult;
	/**单据类型*/
	@Excel(name = "单据类型", width = 15, dicCode = "document_type")
    @Dict(dicCode = "document_task")
    @ApiModelProperty(value = "单据类型")
    private String documentType;
	/**单据编号*/
	@Excel(name = "单据编号", width = 15)
    @ApiModelProperty(value = "单据编号")
    private String documentCode;
	/**任务日期*/
	@Excel(name = "任务日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "任务日期")
    private Date taskDate;
	/**到货日期*/
	@Excel(name = "到货日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "到货日期")
    private Date arrivalDate;
	/**部门*/
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    @ApiModelProperty(value = "部门")
    private String sysOrgCode;
	/**客商*/
	@Excel(name = "客商", width = 15, dictTable = "wms_basic_customer", dicText = "name", dicCode = "id")
    @Dict(dictTable = "wms_basic_customer", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "客商")
    private String wmsBasicSupplierId;
	/**运输在途*/
	@Excel(name = "运输在途", width = 15)
    @ApiModelProperty(value = "运输在途")
    private String inTransfer;
	/**单据状态*/
	@Excel(name = "单据状态", width = 15)
    @Dict(dicCode = "document_status")
    @ApiModelProperty(value = "单据状态")
    private String documentStatus;
	/**货主类型*/
	@Excel(name = "货主类型", width = 15)
    @ApiModelProperty(value = "货主类型")
    private String ownerType;
	/**货主*/
	@Excel(name = "货主", width = 15)
    @ApiModelProperty(value = "货主")
    private String owner;
	/**仓库组*/
	@Excel(name = "仓库组id", width = 15)
    @ApiModelProperty(value = "仓库组id")
    @Dict(dictTable = "wms_basic_warehouse_group", dicText = "name", dicCode = "id")
    private String wmsBasicWarehouseGroupId;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**仓管员*/
	@Excel(name = "仓管员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "仓管员")
    private String warehouseKeeper;
	/**库存方向*/
	@Excel(name = "库存方向", width = 15)
    @ApiModelProperty(value = "库存方向")
    private String warehouseDirection;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @Dict(dictTable = "sys_user",dicCode = "username",dicText = "realname")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**逻辑删除*/
	@Excel(name = "逻辑删除", width = 15)
    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer delFlag;
	/**租户id*/
	@Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private String tenantId;
	/**第三方同步信息id*/
	@Excel(name = "第三方同步信息id", width = 15)
    @ApiModelProperty(value = "第三方同步信息id")
    private String wmsBasicReceiptThirdInfoId;

    @ApiModelProperty(value = "是否有子数据")
    private Integer hasChild;

    @ApiModelProperty(value = "入库凭证")
    private String voucher;

    @ApiModelProperty(value = "来源系统")
    private String originalSystem;

    @ApiModelProperty(value = "来源系统单号")
    private String originalSystemNumber;

    @ApiModelProperty(value = "请求人员")
    private String requestPerson;

    @ApiModelProperty(value = "任务编号")
    private String taskCode;

    @ApiModelProperty(value = "产线名称")
    private String productLine;

    @ApiModelProperty(value = "请求时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date requestTime;

    @ApiModelProperty(value = "任务类型")
    private String taskType;

    @ApiModelProperty(value = "站点编号")
    private String siteCode;

    @ApiModelProperty(value = "备料/退料区域")
    private String materialArea;

    @ApiModelProperty(value = "备料/退料站点")
    private String materialSite;

    @ApiModelProperty(value = "合并主任务编号")
    private String mergeTaskCode;

    @ApiModelProperty(value = "合并产线名称")
    private String mergeProductLine;

    @ApiModelProperty(value = "是否全序列")
    private String allSequence;

    @ApiModelProperty(value = "客户")
    private String customerCode;

    @ApiModelProperty(value = "批次号")
    private String batchCode;

    /**
     * 单据类型（多选数组）
     */
    @ApiModelProperty(value = "单据类型（多选数组）")
    private List<String> documentTypeList;

    /**
     * 销售订单号
     */
    @ApiModelProperty(value = "销售订单号")
    private String saleOrderNumber;

    /**
     * 生产工单号
     */
    @ApiModelProperty(value = "生产工单号")
    private String productOrderNumber;

    /**
     * 调拨任务单号
     */
    @ApiModelProperty(value = "调拨任务单号")
    private String transferApplicationOrder;

    /**
     * 钢卷号
     */
    @ApiModelProperty(value = "钢卷号")
    private String steelCoilNumber;

    /**
     * 上游单号
     */
    @ApiModelProperty(value = "上游单号")
    private String upstreamNumber;

    @ApiModelProperty(value = "过账状态")
    private String transferSapStatus;

    /**
     * 进货仓库id
     */
    @ApiModelProperty(value = "出货仓库id")
    private String inWarehouseId;

    /**
     * 进货仓库id集合
     */
    @ApiModelProperty(value = "出货仓库id集合")
    private List<String> inWarehouseIds;
    @ApiModelProperty("单据状态集合")
    private List<String> documentStatusList;

    @ApiModelProperty("登陆人管理仓库id集合")
    private List<String> manageWarehouseIdList;

    @ApiModelProperty(value="是否是管理员")
    private Boolean adminFlag;
}
